Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchInstanceMetadataの処理中にサーバーが強制終了された場合Lockが永遠に解除されない問題を修正 #191

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

u1-liquid
Copy link
Member

@u1-liquid u1-liquid commented Oct 24, 2023

What

fetchInstanceMetadataのmutexを時間が経ったら自動でexpireされるようにする

Why

外部サーバー情報が更新されないとの報告 z-7719

Additional info (optional)

misskey-dev#11128 のサイドエフェクトである

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@u1-liquid
Copy link
Member Author

u1-liquid commented Oct 26, 2023

パッチ当てる前にとりあえず動くようにする

keydb-cli -n 1 EVAL 'local deleted = 0; for i, key in ipairs(redis.call("KEYS", "misskey.io:fetchInstanceMetadata:mutex:*")) do redis.call("UNLINK", key); deleted = deleted + 1; end; return deleted' 0

@u1-liquid u1-liquid changed the title サーバーが強制終了された場合fetchInstanceMetadataが永遠に解除されない問題を修正 サーバーが強制終了された場合fetchInstanceMetadataのlockが永遠に解除されない問題を修正 Oct 26, 2023
@u1-liquid u1-liquid changed the title サーバーが強制終了された場合fetchInstanceMetadataのlockが永遠に解除されない問題を修正 fetchInstanceMetadataの処理中にサーバーが強制終了された場合Lockが永遠に解除されない問題を修正 Oct 26, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.1% 3.1% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants